#!/usr/bin/env php
<?php

require realpath(__DIR__ . '/../vendor') . '/autoload.php';

use AutoNotes\Commands;
use AutoNotes\Lib\Doctrine\EntityManagerFactory;
use Symfony\Component\Console\Application;

$application = new Application('AutoNote Migration', '0.9.0');

$dbConfig = include __DIR__ . '/../migrations-db.php';
$em = EntityManagerFactory::create($dbConfig);

$application->add(new Commands\UserCreate($em));
$application->add(new Commands\UserUpdate($em));
//$application->add(new Commands\ImportCSV($em));
$application->add(new Commands\DbDump($dbConfig));

$application->run();
